package com.eveinfo.api.utils.certificates;

import java.io.Serializable;
import java.util.HashMap;

public class ApiCertificate implements Serializable {
	
	private static final long serialVersionUID = 2283200039087444457L;

	private final String name;
	private final int ID;
	private final int grade;
	private final int corporationID;
	private final String description;
	private final HashMap<Integer, Integer> requiredSkills;
	private final HashMap<Integer, Integer> requiredCertificates;
	
	public ApiCertificate(String name, int ID, int grade, int corporationID, String description) {
		this.name = name;
		this.ID = ID;
		this.grade = grade;
		this.corporationID = corporationID;
		this.description = description;
		requiredSkills = new HashMap<Integer, Integer>(6);
		requiredCertificates = new HashMap<Integer, Integer>(3);
	}

	public int getID() {
		return ID;
	}

	public int getGrade() {
		return grade;
	}

	public int getCorporationID() {
		return corporationID;
	}

	public String getDescription() {
		return description;
	}

	public HashMap<Integer, Integer> getRequiredSkills() {
		return requiredSkills;
	}
	
	public void addRequiredSkill(int typeID,int skillLevel){
		requiredSkills.put(typeID, skillLevel);
	}

	public HashMap<Integer, Integer> getRequiredCertificates() {
		return requiredCertificates;
	}
	
	public void addRequiredCertificate(int certificateID, int grade){
		requiredCertificates.put(certificateID, grade);
	}

	public String getName() {
		return name;
	}
	
}
